#include<stdio.h>
#include<malloc.h>
char *strc(char *src)
{
	int i=0;
	int l;
	char *a;
	if(src==NULL)
		return 0;
	while(src[i]!='\0'){
		i++;}
	l=i;
	a=(char*)malloc(sizeof(char*)(l));
	for(i=0;src[i]!='\0';i++){
		a[i]=src[i];}
	a[i]='\0';
	return a;
}
int main()
{
	char src[10]="hello";
	char a[10];
	strc(a);
	printf("%s\n",src);
    printf("%s\n",a);
	return 0;
}